package com.dayaokeji.server_api.domain;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Gorden on 2017/10/28.
 */

public class ExamQuestion implements Serializable{
    private static final long serialVersionUID = 3194754347996504953L;
    /**
     * content : asd
     * correctAnswer : A
     * defaultDifficulty : 5
     * defaultScore : 5
     * difficultyName : 很难
     * resourceList : [12]
     * score : 5
     * status : 1
     * statusName : 开放
     * type : 2
     * typeName :
     */
    private int id;
    private String content;
    private String answerOptions;
    private String correctAnswer;
    private int defaultDifficulty;
    private double defaultScore;
    private String difficultyName;
    private double score;
    private int status;
    private String statusName;
    private int type;
    private String typeName;
    private List<Integer> resourceList;
    private List<ChoiceInfo> choiceInfoList;
    private String approveStatusName;
    private String studentAnswer;
    private double getScore = 0;
    private String testExamUserId;
    private List<Integer> answerResourceList;
    private SubjectAnswer subjectAnswer;
    private boolean isActive = false;

    public boolean isActive() {
        return isActive;
    }

    public void setActive(boolean active) {
        isActive = active;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAnswerOptions() {
        return answerOptions;
    }

    public void setAnswerOptions(String answerOptions) {
        this.answerOptions = answerOptions;
    }

    public String getCorrectAnswer() {
        return correctAnswer;
    }

    public void setCorrectAnswer(String correctAnswer) {
        this.correctAnswer = correctAnswer;
    }

    public int getDefaultDifficulty() {
        return defaultDifficulty;
    }

    public void setDefaultDifficulty(int defaultDifficulty) {
        this.defaultDifficulty = defaultDifficulty;
    }

    public double getDefaultScore() {
        return defaultScore;
    }

    public void setDefaultScore(double defaultScore) {
        this.defaultScore = defaultScore;
    }

    public String getDifficultyName() {
        return difficultyName;
    }

    public void setDifficultyName(String difficultyName) {
        this.difficultyName = difficultyName;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public List<Integer> getResourceList() {
        return resourceList;
    }

    public void setResourceList(List<Integer> resourceList) {
        this.resourceList = resourceList;
    }

    public List<ChoiceInfo> getChoiceInfoList() {
        return choiceInfoList;
    }

    public void setChoiceInfoList(List<ChoiceInfo> choiceInfoList) {
        this.choiceInfoList = choiceInfoList;
    }

    public String getApproveStatusName() {
        return approveStatusName;
    }

    public void setApproveStatusName(String approveStatusName) {
        this.approveStatusName = approveStatusName;
    }

    public String getStudentAnswer() {
        return studentAnswer;
    }

    public void setStudentAnswer(String studentAnswer) {
        this.studentAnswer = studentAnswer;
    }

    public double getGetScore() {
        return getScore;
    }

    public void setGetScore(double getScore) {
        this.getScore = getScore;
    }

    public String getTestExamUserId() {
        return testExamUserId;
    }

    public void setTestExamUserId(String testExamUserId) {
        this.testExamUserId = testExamUserId;
    }

    public List<Integer> getAnswerResourceList() {
        return answerResourceList;
    }

    public void setAnswerResourceList(List<Integer> answerResourceList) {
        this.answerResourceList = answerResourceList;
    }

    public SubjectAnswer getSubjectAnswer() {
        return subjectAnswer;
    }

    public void setSubjectAnswer(SubjectAnswer subjectAnswer) {
        this.subjectAnswer = subjectAnswer;
    }

    public static class ChoiceInfo implements Serializable{
        private static final long serialVersionUID = -7204352979607416068L;
        /**
         * content : 1
         * id : 53
         * index : A
         * questionId : 106
         * resourceList : [1673]
         * version : 1
         */
        private String content;
        private int id;
        private String index;
        private int questionId;
        private int version;
        private List<Integer> resourceList;

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getIndex() {
            return index;
        }

        public void setIndex(String index) {
            this.index = index;
        }

        public int getQuestionId() {
            return questionId;
        }

        public void setQuestionId(int questionId) {
            this.questionId = questionId;
        }

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        public List<Integer> getResourceList() {
            return resourceList;
        }

        public void setResourceList(List<Integer> resourceList) {
            this.resourceList = resourceList;
        }
    }

}
